package com.snowwolf.snowmail.example.tempele;


import com.snowwolf.snowmail.core.MailConfig;
import com.snowwolf.snowmail.core.MailUtil;
import com.snowwolf.snowmail.core.templete.IMailTemplete;
import com.snowwolf.snowmail.example.sign.MySiSign;

/**
 * 雪狼科技 邮件模板
 *
 * Created by snowwolf-louis on 17/11/23.
 */
public class SnowWolfMailTemplete implements IMailTemplete {
    @Override
    public String getSubject() {
        return "雪狼科技短信";
    }

    @Override
    public String getContent() {
        String htmlbody = "兄弟们好，<br><br>"
                + "本邮件发送接口由雪狼科技设计<br>"
                + "如有疑问，请联系我们<br><br>"
                + "雪狼科技团队<br>"
                + "邮箱  |  E-Mail: <a href='mailto:18217267935@163.com'><u>18217267935@163.com</u></a>";
        return htmlbody;
    }


    public static void main(String [] args){

        try {

            MailUtil.sendEmail(new MailConfig(),"18217267935@163.com",new SnowWolfMailTemplete(),new MySiSign());


            System.out.println("发送成功");
        } catch (Exception e) {
            System.out.println(e);
            System.out.println("发送失败");
        }
    }
}
